package com.ruoyi.common.enums;

/**
 * 业务操作类型
 *
 * @author ruoyi
 */
public enum CsPlatformType {
    UU(1, "YOUPIN"),
    BUFF(2, "BUFF"),
    C5(3, "C5"),
    STEAM(4, "STEAM"),
    IGXE(5, "IGXE"),
    ECO(6, "ECO"),
    ;

    private final int val;
    private final String desc;

    CsPlatformType(int val, String desc) {
        this.val = val;
        this.desc = desc;
    }

    public int val() {
        return val;
    }

    public String desc() {
        return desc;
    }

    public static CsPlatformType getByVal(int val) {
        for (CsPlatformType csPlatformType : values()) {
            if (csPlatformType.val == val) {
                return csPlatformType;
            }
        }
        return null;
    }
}
